#! /bin/sh

get_cli() {
  repo="jozu-ai/kitops"
  cli="kitops-linux-x86_64.tar.gz"
  cli_name="kit"
  sudo rm -rf /usr/local/bin/${cli_name}
  mkdir demo && cd demo
  wget https://github.com/${repo}/releases/latest/download/${cli}
  tar -zxvf ${cli}
  sudo mv ${cli_name} /usr/local/bin/
  cd ..
  rm -rf demo
}

get_cli
